// sanctitem.txt - This item is inert until someone uses a Ritual of
// Sanctification near it. When that happens, a node in the town script
// is called.

// SLIGHTKY REVISED VERSION, by Thralni

// A party can only get Ritual of Sanctification if someone in the scenario
// teaches to them. Knowledge of the Ritual is taken away when the party
// leaves the scenario.

// Memory Cells - 
//   0 - The town node to call when a Ritual is used nearby.
//   1 - The town node to call when place is searched.

beginterrainscript; 

variables;

	short choice;

body;

beginstate INIT_STATE;
break;

beginstate START_STATE;
break;

beginstate SEARCH_STATE;
	run_town_script(get_memory_cell(1));
break;

beginstate SANCTIFICATION_STATE;
	run_town_script(get_memory_cell(0));
break;